home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / t_os / gpen32k / source.exe / LIB / OSRC / OCIRCLE.C < prev    next >
C/C++ Source or Header  |  1993-03-22  |  446b  |  29 lines

  1. /*
  2.     グラフィック標準関数
  3. */
  4.  
  5. #include    <math.h>
  6. #include    <EGB.H>
  7.  
  8. extern char work[];
  9.  
  10. void circle(int x, int y, int r, int wm, int c )
  11. {
  12.     char pa[64];
  13.     EGB_paintMode( work, wm );
  14.     EGB_color( work, 0, c );
  15.     EGB_color( work, 2, c );
  16.     if (r!=0)
  17.     {
  18.         WORD(pa  ) = x;
  19.         WORD(pa+2) = y;
  20.         WORD(pa+4) = r;
  21.         EGB_circle( work, pa );
  22.     }    else    {
  23.         WORD(pa  ) = 1;
  24.         WORD(pa+2) = x;
  25.         WORD(pa+4) = y;
  26.         EGB_pset( work, pa );
  27.     }
  28. }
  29.